//
//  AdaptionCell.m
//  CellAdaption
//
//  Created by centling on 15/9/18.
//  Copyright © 2015年 centling. All rights reserved.
//

#import "AdaptionCell.h"

@implementation AdaptionCell

- (void)awakeFromNib {
    // Initialization code
//    [self.contentLabel setLineBreakMode:NSLineBreakByTruncatingTail];
//    [self.contentLabel setNumberOfLines:0];
//    [self.contentLabel setTextAlignment:NSTextAlignmentLeft];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)layoutSubviews{
    [super layoutSubviews];
    [self.contentView layoutIfNeeded];
    self.contentLabel.preferredMaxLayoutWidth = CGRectGetWidth(self.contentLabel.frame);
}

@end
